using System;
using BC;

namespace BC.TankGame
{
	///<summary>
	///This is the root class. 
	///</summary>
	public static class Game
	{
		static void Init()
		{
			Zen.Init();
			Zen.Graphics( 640, 480, 32, false );
		}
		
		static void Main()
		{
			try
			{
				Init();
				
				//main loop goes here...
				while( true )
				{
					Zen.Cls();
					Zen.Flip();
				}
								
			}
			catch( Exception ex )
			{
				throw ex;//just rethrow for now... we'll get fancier handling later	
			}
			finally
			{
				Shutdown();
			}
		}
		
		static void Shutdown()
		{
			Zen.Shutdown();
		} 
	}
}